<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../layui/css/layui.css"  media="all">
    <link rel="stylesheet" href="../layui/layui.all.js"  media="all">
</head>


<body>
<!--表单-->

<!--添加缺陷类型-->

<form id="defect_table" class="layui-form" method="" action="" style="margin-top: 30px;margin-left: 50px">
    <div style="float: left;">

            <div class="layui-form-item" >
            <label class="layui-form-label" style="text-align: left">任务编号：</label>
            <div class="layui-input-inline">
                <input style="border:none" type="text" id="sovle_task" name="sovle_task"  disabled lay-verify="required|sovle_task" autocomplete="off" placeholder="请输入缺陷名称" class="layui-input">

            </div>
            </div>
            <div class="layui-form-item" >
            <label class="layui-form-label"style="text-align: left">任务名称：</label>
            <div class="layui-input-inline">
                <input style="border:none"type="text" id="solve_name" name="solve_name" disabled  lay-verify="required|solve_name" autocomplete="off" placeholder="请输入缺陷名称" class="layui-input">

            </div>
            </div>
            <div class="layui-form-item" >
            <label class="layui-form-label"style="text-align: left">任务状态：</label>
            <div class="layui-input-inline">
                <input style="border:none"type="text" id="state_name" name="state_name" disabled  lay-verify="required|state_name" autocomplete="off" placeholder="请输入缺陷名称" class="layui-input">

            </div>
            </div>


            <div class="layui-form-item" >
            <label class="layui-form-label"style="text-align: left">工作单据：</label>
            <div class="layui-input-inline">
                <input style="border:none"type="text" id="work_order_des" name="work_order_des"  disabled lay-verify="required|work_order_des" autocomplete="off" placeholder="请输入缺陷名称" class="layui-input">

            </div>
            </div>
            <label class="layui-form-label" style=" text-align: left">下发人：</label>
            <div class="layui-input-inline">
                <input  style="border:none"type="text" id="user_name" name="user_name" disabled  lay-verify="required|user_name" autocomplete="off" placeholder="请输入缺陷名称" class="layui-input">

            </div>
            <div class="layui-form-item" >
            <label class="layui-form-label" style=" text-align: left">下发时间：</label>
            <div class="layui-input-inline">
                <input style="border:none"type="text" id="lssue_time" name="lssue_time" disabled  lay-verify="required|lssue_time" autocomplete="off" placeholder="请输入缺陷名称"   class="layui-input">

            </div>
            </div>



            <div class="layui-form-item" >
            <label class="layui-form-label"style="text-align: left">消缺描述：</label>
            <div class="layui-input-inline">
                <input style="border:none"type="text" id="sovle_dec" disabled name="sovle_dec"   lay-verify="required|sovle_dec" autocomplete="off" placeholder="请输入缺陷名称" class="layui-input">
            </div>
            </div>
            <div class="layui-form-item" >
            <label class="layui-form-label" style=" text-align: left">消缺员：</label>
            <div class="layui-input-inline">
                <input style="border:none"type="text" id="sovle_account" disabled name="sovle_account"   lay-verify="required|sovle_account" autocomplete="off" placeholder="请输入缺陷名称" class="layui-input">
            </div>
            </div>
            <div class="layui-form-item" >
            <label class="layui-form-label" style=" text-align: left">完成时间：</label>
            <div class="layui-input-inline">
                <input style="border:none"type="text" id="sovlesuc_time" disabled name="sovlesuc_time"   lay-verify="required|sovlesuc_time" autocomplete="off" placeholder="未完成" class="layui-input">
            </div>
            </div>

    </div>
</form>
<script src="../layui/layui.all.js" charset="utf-8"></script>
<script>
    layui.use(['form','upload','laydate','table','layer'], function() {
        var $ = layui.jquery
            , upload = layui.upload
            , laydate = layui.laydate
            , layedit = layui.layedit
            , form = layui.form
            ,layer=layui.layer
            ,table=layui.table;
        var element = layui.element;

        var test = JSON.parse(sessionStorage.getItem("test"));

        table.render({
            elem: '#test2'
            , url: '/querySolveTask'
            ,title:'缺陷等级'
            ,where:{test:JSON.stringify(test)}
            , cols: [[
                {field: 'sovle_task', title: '任务编号', fixed: 'left',align:'center'}
                , {field: 'solve_name', title: '任务名称', edit: 'text',align:'center'}
                , {field: 'work_order_des', title: '工作单据', edit: 'text',align:'center'}
                , {field: 'user_name', title: '下发人', edit: 'text',align:'center'}
                , {field: 'lssue_time', title: '下发时间', edit: 'text',align:'center',templet : "<div>{{layui.util.toDateString(d.find_time, 'yyyy-MM-dd')}}</div>"}
                , {field: 'state_name', title: '任务状态', edit: 'text',align:'center'}
                , {field: 'sovlesuc_time', title: '任务完成时间', edit: 'text',align:'center',templet : "<div>{{layui.util.toDateString(d.find_time, 'yyyy-MM-dd')}}</div>"}
                , {field: 'yesno_name', title: '任务是否取消', edit: 'text',align:'center'}
                , {field: 'sovle_account', title: '消缺员', edit: 'text',align:'center',style:'display:none'}
                , {field: 'sovle_dec', title: '消缺描述', edit: 'text',align:'center',style:'display:none'}
            ]]
        });
        });
</script>
</body>
</html>